package br.com.sgr.infra.persistencia;

import java.util.ResourceBundle;

public class LabelConverter {

    private static final LabelConverter INSTANCE;
    private ResourceBundle bundle;

    static {
        INSTANCE = new LabelConverter();
    }

    private LabelConverter() {
        this.bundle = ResourceBundle.getBundle("labels");
    }

    public static LabelConverter getInstance() {
        synchronized (INSTANCE) {
            return INSTANCE;
        }
    }

    public String getAsString(String chave) {
        return bundle.getString(chave);
    }
}